package tests;

import static org.junit.Assert.*;

import org.junit.Test;

import entities.Inventory;
import fields.Refuge;
import gstd.Player;

public class TestRefuge {

	@Test
	public void testLandOnField() {
		Refuge f = new Refuge("Refuge", 200);		
		Refuge f2 = new Refuge("Refuge",1000);
		Player p = new Player("Mr. Cat", new Inventory(200));
		
		//First test
		f.landOnField(p);
		assertEquals(400, p.getInventory().getBalance());
		
		//Second test
		f2.landOnField(p);
		assertEquals(1400, p.getInventory().getBalance());
	}

}
